package com.atguigu.gmall.list.service;

import com.atguigu.gmall.model.list.SearchParam;
import com.atguigu.gmall.model.list.SearchResponseVo;

import java.io.IOException;

/**
 * @author atguigu-mqx
 */
public interface SearchService {


    /**
     * 上架
     * @param skuId
     */
    void upperGoods(Long skuId);

    /**
     * 下架
     * @param skuId
     */
    void lowerGoods(Long skuId);

    /**
     * 更新热度
     * @param skuId
     */
    void incrHotScore(Long skuId);

    /**
     * 检索数据
     * @param searchParam
     * @return
     */
    SearchResponseVo search(SearchParam searchParam) throws IOException;
}
